<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>添加</title>
	<%@include file="/commons/include/add.jsp" %>
	<script type="text/javascript">
$(function(){
	
	jQuery("#dataForm").validate(
	{
		rules: {
			billing_dep:{
				required:true
			},
			billing_code:{
				required: true
			},
			start_id:{
				required:true
			},
			end_id:{
				required:true
			},
			current_id:{
				required:true
			}
		},
		messages: {
			billing_dep:{
				required:"请选择开票部门"
			},
			billing_code:{
				required:"请填写开票代码"
			},
			start_id:{
				required:"请填写发票开始号码"
			},
			end_id:{
				required:"请填写发票终止号码"
			},
			current_id:{
				required:"请填写发票当前发生号"
			}
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
});
_callback = function() {
	location.href = ctx + "/manage/basicData/getInvoices.htm";
}
validCallBack = function()
{
	//添加页面自定义校验

	return true;
};
	</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">发票代码号码范围添加</td>
		<td>
			<div class="menuTool">
				<a class="save" id="dataFormSave" href="#">保存</a>
				<a class="back" href="getInvoices.htm">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataForm" method="post" action="addInvoices2.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr>
		<td class="form_title">开票部门：</td>
		<td class="form_input">
		<select id="billing_dep" name="billing_dep">
				<option value="" >请选择</option>
				 <c:forEach items="${departList}" var="d" varStatus="status">
					<option value="${d.dep_code}">${d.dep_code}[${d.dep_name}]</option>
				</c:forEach>
		</select>
		</td>
		
		<td class="form_title">开票代码：</td>
		<td class="form_input"><input type="text" id="billing_code" name="billing_code" value="" /></td>
		<td class="form_title">发票当前发生号：</td>
		<td class="form_input" colspan="3"><input type="text" id="current_id" name="current_id" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">发票开始号码：</td>
		<td class="form_input"><input type="text" id="start_id" name="start_id" value="" /></td>
		
		<td class="form_title">发票终止号码：</td>
		<td class="form_input"><input type="text" id="end_id" name="end_id" value="" /></td>
		<td class="form_title">发票票种：</td>
		<td class="form_input"><input type="text" id="billing_type" name="billing_type" value="" /></td>
		
	</tr>
</table>
</form>
</body>
</html>
